package com.ant.controller;


import com.ant.exceptions.ResourceNotFoundException;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * @Auther: 灏
 * @Date: 2025/6/1 - 06 - 01 - 23:15
 * @Description: com.ant.controller
 * @version: 1.0
 */
@Controller
public class CustomErrorController implements ErrorController {


    @RequestMapping("/error")
    public String handleError(HttpServletRequest request, HttpServletResponse response) {
        throw new ResourceNotFoundException("");

    }


}
